package org.tigris.subversion.svnant.commands;

import java.io.File;
import org.tigris.subversion.svnclientadapter.ISVNClientAdapter;
import org.tigris.subversion.svnclientadapter.SVNClientException;

public class Revert extends ResourceSetSvnCommand
{
  private static final String MSG_CANNOT_REVERT = "Cannot revert file or directory %s";

  public Revert()
  {
    super(false, true);
  }

  protected void handleDir(File paramFile, boolean paramBoolean)
  {
    revert(paramFile, paramBoolean);
  }

  protected void handleFile(File paramFile)
  {
    revert(paramFile, false);
  }

  private void revert(File paramFile, boolean paramBoolean)
  {
    try
    {
      getClient().revert(paramFile, paramBoolean);
    }
    catch (SVNClientException localSVNClientException)
    {
      throw ex(localSVNClientException, "Cannot revert file or directory %s", new Object[] { paramFile.getAbsolutePath() });
    }
  }

  public void setRecurse(boolean paramBoolean)
  {
    super.setRecurse(paramBoolean);
  }
}

/* Location:           C:\Users\Administrator\Desktop\svnant.jar
 * Qualified Name:     org.tigris.subversion.svnant.commands.Revert
 * JD-Core Version:    0.6.0
 */